
import { createRouter, createWebHistory } from 'vue-router'
// 路由规则
const routes = [
    {
        path:"/",
        title:"首页",
        component: ()=> import("../views/welcome.vue"),

    },
    {
        path:"/item",
        title:"物料产品",
        component: ()=> import('../views/md/item/list.vue')
    },
    {
        path:"/itemType",
        title:"物料产品分类",
        component: ()=> import('../views/md/itemType/list.vue')
    },
    {
        path:"/unitmeasure",
        title:"计量单位",
        component: ()=> import('../views/md/unitmeasure/list.vue')
    },
    {
        path:"/client",
        title:"客户管理",
        component: ()=> import('../views/md/client/list.vue')
    },
    {
        path:"/vendor",
        title:"供应商管理",
        component: ()=> import('../views/md/vendor/list.vue')
    },
    {
        path:"/workshop",
        title:"车间管理",
        component: ()=> import('../views/md/workshop/list.vue')
    },
    {
        path:"/workstation",
        title:"工作站",
        component: ()=> import('../views/md/workstation/list.vue')
    },
    {
        path: "/dict",
        title: "字典管理",
        component: () => import('../views/sys/dict/list.vue')
    },
    {
        path: "/defect",
        title: "常见缺陷",
        component: () => import('../views/qc/defect/list.vue')
    },
    {
        path: "/index",
        title: "检测项设置",
        component: () => import('../views/qc/index/list.vue')
    },
    {

        path:"/calTeam",
        title:"班组设置",
        component:()=>import('../views/cal/calTeam/list.vue')
    },
    {
        path:"/device",
        title:"设备类型设置",
        component:()=>import('../views/dv/device-type/list.vue')
    },
    {
        path:"/maintenance-items",
        title:"点检保养项目",
        component:()=>import('../views/dv/maintenance-items/list.vue')
    },
    {
        path:"/ledger",
        title:"设备台账",
        component:()=>import('../views/dv/ledger/list.vue')
    },
    {
        path: "/template",
        title: "检测模板",
        component: () => import('../views/qc/template/list.vue')
    },
    {
        path: "/log",
        title: "操作日志管理",
        component: () => import('../views/sys/log/list.vue')
    },
    {
        path: "/pro-workorder",
        title: "生产工单",
        component: () => import('../views/sys/pro/list.vue')
    },
    {
       path:"/pro-process",
       title:"工序设置",
       component:()=>import('../views/sys/pro/process.vue')
    },
    {
        path:"/pro-route",
        title:"工艺流程",
        component:()=>import('../views/sys/pro/route.vue')
     },
    {
        path: "/calTeam",
        title: "班组设置",
        component: () => import('../views/cal/calTeam/list.vue')
    },
    {
        path: "/calPlan",
        title: "排班计划",
        component: () => import('../views/cal/calPlan/list.vue')
    },
    {
        path: "/calHoliday",
        title: "节假日设置",
        component: () => import('../views/cal/calHoliday/list.vue')
    },
    {
        path: "/calTeamShift",
        title: "排版日历",
        component: () => import('../views/cal/calTeamShift/list.vue')

    }
    
]
// 创建路由对象
const router = createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHistory(),
    routes, // `routes: routes` 的缩写
});
// 暴漏router对象
export default router;